package com.sihan.framework.etm.entity.baseData;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.framework.mybatis.annotation.AutoGenerator;
import com.framework.mybatis.enums.IdType;
import com.sihan.framework.etm.entity.BaseUseOrgAndBlgLocalModel;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 
 * @description 工器具表
 * @author 韩兵
 * 
 * @Date 2020年7月2日
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Table(name = "jdx_etm_tool")
public class ToolModel extends BaseUseOrgAndBlgLocalModel implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 工器具ID
	 */
	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy = GenerationType.AUTO)
	@AutoGenerator(idType = IdType.UUID32)
	private String id;

	/**
	 * 工器具出厂id
	 */
	private String tid;
	
	/**
	 * 电子标签的出厂编号
	 */
	private String rfidTid;
	/**
	 * 设备编号-实物id
	 */
	private String code;

	private String oldCode;

	private String name;

	/**
	 * 检定日期
	 */
	private Date testDate;

	/**
	 * 有效期
	 */
	private Date expiredDate;

	private Integer status;

	private String maintainUserId;

	private String deviceId;

	private String bindDeviceId;

	private Integer isBind;

	private Date bindTime;

	private Date produceDate;
	private Date manufactorDate;
	private Date buyDate;

	private String testPeriod; // varchar(255) DEFAULT NULL COMMENT '试验周期',月
	private String classId; // varchar(50) DEFAULT NULL COMMENT '分类id',
	private String className; // varchar(255) DEFAULT NULL COMMENT '分类名称',
	private String classifyId; // varchar(50) DEFAULT NULL COMMENT '工器具名称编码',
	private String classifyName; // varchar(255) DEFAULT NULL COMMENT '工器具名称',
	private String standardId; // varchar(50) DEFAULT NULL COMMENT '规格型号id',
	private String standardName; // varchar(255) DEFAULT NULL COMMENT '规格型号名称',
	private String voltageGrade; // varchar(255) DEFAULT NULL COMMENT '电压等级',
	private String inUserId; // varchar(50) DEFAULT NULL COMMENT '入库扫描人id',
	private String inUserName; // varchar(255) DEFAULT NULL COMMENT '入库扫描人',
	private String createOrgId; // varchar(50) DEFAULT NULL COMMENT '入库扫描单位id',
	private String createOrgName; // varchar(255) DEFAULT NULL COMMENT '入库扫描单位',
	private String factoryId; // varchar(50) DEFAULT NULL COMMENT '厂商id',
	private String factoryName; // varchar(255) DEFAULT NULL COMMENT '厂商',
	private String perName; // varchar(255) DEFAULT NULL COMMENT '厂商负责人',
	private String perTell; // varchar(255) DEFAULT NULL COMMENT '负责人联系方式',
	private String guaranteePeriod; // varchar(255) DEFAULT NULL COMMENT '质保期限',年
	private String useLocalId; // varchar(50) DEFAULT NULL COMMENT '保管地点id',
	private String useAddressName; // varchar(255) DEFAULT NULL COMMENT '保管地点名称',
	private String planId; // varchar(50) DEFAULT NULL COMMENT '计划id',
	private String planName; // varchar(255) DEFAULT NULL COMMENT '计划名称',
	private String isplan; // varchar(50) DEFAULT NULL COMMENT '是否易耗品',
	private String commentStatus; // varchar(50) DEFAULT NULL COMMENT '送检预警状态',
	private String comment;// decimal(18,0) DEFAULT NULL COMMENT '使用次数',
	private Integer useRecordStatus;
}
